1 + 2 + 3 + 4 = 10

Updating Arrays and Objects

A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment.